import request from '@/utils/request'

// 查询异常记录列表
export function listException(query) {
  return request({
    url: '/order/exception/list',
    method: 'get',
    params: query
  })
}

// 查询异常记录详细
export function getException(id) {
  return request({
    url: '/order/exception/' + id,
    method: 'get'
  })
}

// 新增异常记录
export function addException(data) {
  return request({
    url: '/order/exception',
    method: 'post',
    data: data
  })
}

// 修改异常记录
export function updateException(data) {
  return request({
    url: '/order/exception',
    method: 'put',
    data: data
  })
}
// 分配异常记录
export function distributeException(data) {
  return request({
    url: '/order/exception/distribute',
    method: 'put',
    data: data
  })
}

// 删除异常记录
export function delException(id) {
  return request({
    url: '/order/exception/' + id,
    method: 'delete'
  })
}
// 处理异常记录
export function dealException(id) {
  return request({
    url: '/order/exception/deal/' + id,
    method: 'post'
  })
}

// 导出异常记录
export function exportException(query) {
  return request({
    url: '/order/exception/export',
    method: 'get',
    params: query
  })
}